import { defineStore } from 'pinia'

export const appStore = defineStore('appStore', {
    state: () => ({
        // sidebar 是否展开
        sidebarOpened: true,
    }),
    actions: {
        setSidebarOpened() {
            this.sidebarOpened = !this.sidebarOpened
        },
    }
})